<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link href="__CSS__/course.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>


<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-md-2">            
          <include file="Public/sidebar"  />
        </div>
        <!-- 左侧菜end -->
  <!--内容栏start-->
  <div class="col-md-10 content"> 
    <ul class="nav nav-tabs">
      <li><a href="{:U('Wckczuoye/index')}"><i class="icon icon-home"></i>首页</a></li>
      <li><a href="{:U('Wckczuoye/add')}">我要交作业</a></li>
      <li><a href="{:U('Wckczuoye/search')}">作业检索</a></li>
      <li class="active"><a href="{:U('Wckczuoye/editCourse')}">课程管理</a></li>
      <li><a href="{:U('Wckczuoye/student')}">学生管理</a></li>
      <li><a href="{:U('Wckczuoye/myupload','id='.$vo['id'])}" >我的文档</a></li>
   </ul>
	<!-- 标题栏 -->
       <h3 style="color:#5A81A8">&nbsp; &nbsp;&nbsp; &nbsp;<i class="icon icon-pencil"></i>&nbsp; &nbsp; 课程管理</h3>
       <div class=" rightbox col-md-3">
          <div class=" panel panel-info">
             <div class="panel-heading">
              <h3 class="panel-title">课程信息</h3> 
             </div>
             <div class="panel-body">
             <volist name="courselist" id="vo">
             <a href="{:U('Wckczuoye/editCourse','id='.$vo['id'])}">【{$vo.title}】</a><br/>
          </volist> 
             </div>
          </div>
       </div>
      
<div class=" rightbox col-md-9">
   <!-- 面板1start  -->
 <div class=" panel panel-info">
   <div class="panel-heading">
      <h3 class="panel-title">添加课程 </h3>     
   </div>

       <div class="panel-body">

       <div class="col-md-4">        
          <volist name="grouplist" id="vo">
            <h3> <a href="{:U('Wckczuoye/editCourse','id='.$vo['id'])}">【{$vo.title}】</a></h3>
          </volist> 
       </div>

       <!-- 表单start -->
       <div class="col-md-8">
       <h2>{$title} <a href="{:U('Wckczuoye/editCourse')}" class="btn btn-default pull-right"><i class="icon icon-plus"></i>  添加课程</a></h2>
       <form method='post' id="infoform" name="infoform" action="" role="form" class="form-horizontal form-condensed">
         <div class="form-group">
          <label class="col-md-3 control-label">课程名称：</label>
          <div class="col-md-6">
             <input name="title" id="title" value="{$info.title}" class="form-control" type="text">
          </div>
          <div class="col-md-3">（课程名称）</div>
        </div>

        <div class="form-group">
          <label class="col-md-3 control-label">文件类型：</label>
          <div class="col-md-6">
             <input name="allow_file_ext" id="allow_file_ext" value="{$info.allow_file_ext}" class="form-control" type="text">
          </div>
          <div class="col-md-3">（排序编号）</div>
        </div>

         <div class="form-group">
          <label class="col-md-3 control-label">排  序：</label>
          <div class="col-md-6">
             <input name="sort" id="sort" value="{$info.sort}" class="form-control" type="text">
          </div>
          <div class="col-md-3">（排序编号）</div>
        </div>
      
        <div class="form-group">
         <div class="col-md-offset-2 col-md-2">
         <input type="hidden" name="id" value="{$info.id}" />
         <button type="submit" class="btn btn-success " id="submit-button"><span class="icon icon-edit"></span>  保存</button></div>
         <div class="col-md-3"><a href="#" class="btn btn-danger" id="submit-button" href="{U('delete')}"><span class="icon icon-trash"></span>  删除</a></div>
        </div>
        </form>
         </div>
         <!-- 表单end -->
       </div>

          <div class="panel-footer">
          没有添加的课程，点添加按钮可直接添加。

          </div>
      
    </div>
    <!-- 面板1end  -->
  </div>
  <div class="clearfix" > </div>

 </div> 
</block>

